package com.tencent.wxcloudrun.vo.request.wx;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.File;

/**
 * @author Ryan Zhao
 *         <p>
 *         Copyright: Copyright (c) 2023
 *         </p>
 * @version 1.0
 * @date 2023-08-29 16:58
 * @description: 微信上传文件请求入参
 */
@NoArgsConstructor
@Data
@ApiModel(value = "WxUploadfileServerRequest", description = "微信上传文件请求入参")
public class WxUploadfileServerRequest {

    @ApiModelProperty("请求包中的 path 字段")
    private String key;

    @ApiModelProperty("返回数据的 authorization 字段")
    @JsonProperty("Signature")
    private String signature;

    @ApiModelProperty("返回数据的 token 字段")
    @JsonProperty("x-cos-security-token")
    private String xCosSecurityToken;

    @ApiModelProperty("返回数据的 cos_file_id 字段")
    @JsonProperty("x-cos-meta-fileid")
    private String xCosMetaFileid;

    @ApiModelProperty("文件")
    private File file;

}
